package com.jinyu.jyly.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jinyu.jyly.R;
import com.jinyu.jyly.bean.PropertyListInfo;

import java.util.List;


/**
 *
 */
public class AccountAdapter extends BaseQuickAdapter<PropertyListInfo.DataBean, BaseViewHolder> {

    public AccountAdapter(List<PropertyListInfo.DataBean> data, int layoutResIds) {
        super(layoutResIds, data);
    }


    @Override
    protected void convert(final BaseViewHolder helper, final PropertyListInfo.DataBean item) {

        helper.setText(R.id.tv_type,item.getType());
        helper.setText(R.id.tv_desc,item.getOperate());
        helper.setText(R.id.tv_money_type,item.getTag());
        helper.setText(R.id.tv_money,item.getMoney());
        helper.setText(R.id.tv_time,item.getDate()+" "+item.getTime());

    }


}


